-- GENERATED SPELL FOR [Eye of Taldaram] --


function spell0_30285(pUnit, Event) --@Dark Counterspell,n/a--
pUnit:FullCastSpellOnTarget(56730,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30285', 8281, 1)
end

function spell1_30285(pUnit, Event) --@Dark Counterspell,n/a--
pUnit:FullCastSpellOnTarget(59111,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30285', 8332, 1)
end

function spell2_30285(pUnit, Event) --@Eyes in the Dark,n/a--
pUnit:FullCastSpellOnTarget(56728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30285', 20266, 1)
end

function spell3_30285(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(17289,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30285', 619, 1)
end

function spell4_30285(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(17439,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30285', 660, 1)
end

function spell5_30285(pUnit, Event) --@Shadowfury,n/a--
pUnit:FullCastSpellOnTarget(56733,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30285', 589, 1)
end

function spell6_30285(pUnit, Event) --@Shadowfury,n/a--
pUnit:FullCastSpellOnTarget(61463,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30285', 601, 1)
end

function Sorts_30285(pUnit, Event)
local choix_sorts_30285 = math.random(0, 6)
if choix_sorts_30285 == 0 then
pUnit:RegisterEvent('spell0_30285', 1, 1)
end
if choix_sorts_30285 == 1 then
pUnit:RegisterEvent('spell1_30285', 1, 1)
end
if choix_sorts_30285 == 2 then
pUnit:RegisterEvent('spell2_30285', 1, 1)
end
if choix_sorts_30285 == 3 then
pUnit:RegisterEvent('spell3_30285', 1, 1)
end
if choix_sorts_30285 == 4 then
pUnit:RegisterEvent('spell4_30285', 1, 1)
end
if choix_sorts_30285 == 5 then
pUnit:RegisterEvent('spell5_30285', 1, 1)
end
if choix_sorts_30285 == 6 then
pUnit:RegisterEvent('spell6_30285', 1, 1)
end
end

function mob30285_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30285', math.random(1500, 3000), 1)
end

function mob30285_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30285_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30285_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30285, 1, 'mob30285_Action')
RegisterUnitEvent(30285, 2, 'mob30285_Leave')
RegisterUnitEvent(30285, 3, 'mob30285_Kill')
RegisterUnitEvent(30285, 4, 'mob30285_Die')
